package com.atguigu.java.ai.langchain4j;

import dev.langchain4j.agent.tool.P;
import dev.langchain4j.service.MemoryId;
import dev.langchain4j.service.SystemMessage;
import dev.langchain4j.service.UserMessage;
import dev.langchain4j.service.V;
import dev.langchain4j.service.spring.AiService;
import dev.langchain4j.service.spring.AiServiceWiringMode;

import static dev.langchain4j.service.spring.AiServiceWiringMode.EXPLICIT;

/**
 * @Author: Mikey
 * @Date: 2025/8/29 09:32
 * @Description:
 **/
@AiService(wiringMode = EXPLICIT,chatModel = "qwenChatModel",chatMemoryProvider = "chatMemoryProvider")
//    @AiService(wiringMode = EXPLICIT,chatModel = "qwenChatModel",chatMemoryProvider = "chatMemoryProvider")
public interface Assistant {

    String chat(String message);



    @UserMessage(fromResource = "my-prompt-template3.txt")
    String chat(@MemoryId Long MemoryId,@UserMessage String UserMessage);

    @SystemMessage(fromResource = "my-prompt-template3.txt")
    String chat2(@MemoryId Long MemoryId,
                 @UserMessage String UserMessage,
                 @V(value = "username" ) String username,
                 @V(value = "age" ) int age
    );


}
